inp = input('Please enter a quotation:')

num = int(input('Please enter the increment: '))

newpoem = ""
newsentence = True
count = 0
for char in inp:
    count = count + 1
    if count == 0:
        newpoem = newpoem + char.lower()
    elif (count % num ) == 0:
        newpoem = newpoem + char.upper()
    else:
        newpoem = newpoem + char


print(newpoem)
